<template>
  <div>
    <p class="title">用户详情</p>
    <el-button class="goBack" type="primary">返回</el-button>
    <div class="boby">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="基本详情" name="first">
          <div class="allboy">
            <div class="left">
              <div class="box1">
                <div><span>手机号：</span> <span>12345678900</span></div>
                <div><span>密码：</span> <span>12345678900</span></div>
                <div><span>是否认证：</span> <span>已认证</span></div>
                <div><span>密码：</span> <span>12345678900</span></div>
              </div>
              <div class="box1">
                <div><span>账户状态：</span> <span>12345678900</span></div>
                <div><span>最近登录：</span> <span>12345678900</span></div>
                <div><span>管理员：</span> <span>已认证</span></div>
              </div>
              <div class="box1"><span>兴趣标签：</span> <span>2222</span></div>
              <div class="box1"><span>个性签名：</span> <span>2222</span></div>
            </div>

            <div class="right">
              <img src="" alt="" />
              <p><span>用户名称：</span> <span>xxx</span></p>
              <p><span>性别：</span> <span>xxx</span></p>
              <p><span>出生日期：</span> <span>xx</span></p>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="动态" name="second"> 
        <div class="dybox">
          <div class="dybox1" @click="toDel">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxxxxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
        </div>
         <Page :total="total" :PageNumber.sync="PageNumber" :PageSize.sync="PageSize" @current-change="changeCurrentPage"
        @size-change="handleSizeChange">
      </Page>
         </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import Page from '../../components/page.vue'
export default {
  components: {
      Page
    },
  data() {
    return {
      activeName: "first",
        PageNumber: 1,
        PageSize: 20,
        total: 50,
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
     //改变当前页数
      changeCurrentPage(val) {
       console.log(val);
      },
      //改变每页显示条数
      handleSizeChange(val) {
       console.log(val);
      },
      // 动态详情
      toDel(){
        // vodiodeal需改为动态组件
         this.$router.push("/Home/vodiodeal")
         console.log(1);
      }
  },
};
</script>

<style lang="scss" scoped>
.title {
  margin-top: -10px;
  font-size: 14px;
}
.boby {
  padding: 40px;
}
.box1 {
  display: flex;
  margin-top: 40px;
  div {
    margin-right: 30px;
    width: 200px;
  }
}
.allboy {
  display: flex;
}
.right {
  img {
    width: 178px;
    height: 178px;
    border-radius: 50%;
    background-color: #ccc;
  }
}
.goBack {
  width: 120px;

  float: right;
}
.dybox{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .dybox1{
    padding: 20px;
    img{
      width: 180px;
      height: 220px;
    }
    p{
       margin: 0;
      height: 40px;
    line-height: 40px;
     width: 180px;
  overflow: hidden;
  white-space: nowrap;

  text-overflow: ellipsis;

  -o-text-overflow: ellipsis;
    }
  }
}
</style>